package subumbo.demo.service {
	import flash.events.Event;
	import flash.net.URLVariables;
	
	import org.osflash.signals.Signal;
	
	
	public class LoadWishService extends AbstractService {
		
		public var result:Signal = new Signal(String);
		
		public function set id(val:String):void {
			request.url = "http://www.subumbo.com/demo/load.php";
			var vars:URLVariables = new URLVariables();
			vars.id = val;
			request.data = vars; 
		}
		
		protected override function onResult(e:Event):void {
			super.onResult(e);
			trace("");
			result.dispatch(loader.data);
		}
	}
}